<template>
  <div>影院列表</div>
</template>

<script>
export default {
  name: "CinemaFilmList",
};
</script>

<style lang="scss" scoped>
.cinema-film-list {
  border-bottom: 1px solid #f4f4f4;
  .cinema-film-swiper {
    /* 设置动态模糊背景 */
    .film-swiper-background-image {
      width: 100vw;
      height: 160px;
      position: absolute;
      background-size: cover;
      background-position: center;
      filter: blur(25px);
    }
    height: 160px;
    padding: 15px 0px;
    position: relative;
    overflow: hidden;
    .swiper {
      .swiper-slide {
        width: 90px;
        height: 130px;
        img {
          width: 90px;
          height: 130px;
          cursor: pointer;
        }
      }
    }
  }
  .cinema-film-info {
    /* 利用伪类实现三角形 */
    &::before {
      content: "";
      display: block;
      position: absolute;
      top: -20px;
      border: 10px solid transparent;
      border-bottom: 10px solid white;
    }
    height: 80px;
    padding: 15px 0px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-direction: column;
    position: sticky;
    background-color: white;
    top: 44px;
    cursor: pointer;
    .film-title {
      display: flex;
      .film-name {
        color: #191a1b;
        font-size: 15px;
      }
      .film-grade {
        font-size: 16px;
        font-style: italic;
        color: #ffb232;
        margin-left: 5px;
        span {
          font-size: 12px;
        }
      }
    }
    .film-more-icon {
      position: absolute;
      height: 12px;
      line-height: 12px;
      right: 10px;
      top: 32px;
      transform: scale(0.8);
      i {
        font-size: 12px;
      }
    }
    .film-desc {
      max-width: 80vw;
      color: #797d82;
      font-size: 13px;
      white-space: nowrap;
      text-overflow: ellipsis;
      overflow: hidden;
    }
  }
}
</style>
